package com.imooc.common.thread.keep;

import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicReference;

public class Worker {
    private volatile AtomicReference<Integer> counter ; // 记录任务执行顺序

    public AtomicReference<Integer> getCounter() {
        return counter;
    }

    public void setCounter(AtomicReference<Integer> counter) {
        this.counter = counter;
    }
}
